.app {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  .editor {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    &-left {
      background-color: #ccc;
      width: 400px;
      min-width: 100px;
      height: 100%;
      border-right: 1px solid #000;
      box-sizing: border-box;
      transition: all 1s ease;
      display: flex;
      &-tableControl {
        width: 60px;
        text-align: center;
        height: 100%;
        .navigation {
          width: 100%;
          display: flex;
          justify-content: center;
          align-items: center;
          padding: 30px 0px;
          writing-mode: vertical-rl;
        }
        .active {
          background-color: green;
          color: #fff;
        }
      }
      &-render {
        width: calc(100% - 60px);
        height: 100%;
        background-color: #e7e2e2;
        overflow: hidden;
        overflow-y: auto;
        &::-webkit-scrollbar {
          width: 0px;
        }
        &-component {
          width: 100%;
          display: flex;
          align-items: center;
          padding: 20px;
          box-sizing: border-box;
          cursor: move;
          user-select: none;
          min-height: 100px;
          position: relative;
          padding-top: 30px;
          box-sizing: border-box;
          margin-bottom: 10px;
          > span {
            position: absolute;
            z-index: 998;
            top: 0;
            left: 0;
            background: rgb(96, 205, 224);
            color: #fff;
            padding: 4px;
          }
          &::after {
            content: "";
            position: absolute;
            z-index: 999;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #a5a2a2;
            opacity: 0.2;
          }
        }
        .canvasAttr {
          display: flex;
          flex-direction: column;
          padding: 20px;
          box-sizing: border-box;
          .canvasBox {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            .editor-top-box-button {
              width: 50px;
              height: 50px;
              display: flex;
              border-radius: 5px;
              flex-direction: column;
              justify-content: center;
              align-items: center;
              background: rgba(0, 0, 0, 0.3);
              user-select: none;
              cursor: pointer;
              color: #fff;
              margin-left: 3px;
              &:hover {
                color: #d1239d;
                background-color: rgb(96, 205, 224);
              }
            }
            .el-input {
              width: 140px;
            }
            .importFile{
              background-color: blue;
              color: #fff;
              height: 40px;
              line-height: 40px;
              padding: 0 10px;
              border-radius: 10px;
            }
          }
        }
      }
    }
    &-container {
      // width: calc(100% - 400px);
      height: 100%;
      // box-sizing: border-box;
      // display: flex;
      // flex-direction: column;
      background-color: #ccc;
      overflow: scroll;
      flex: 1;
      background-color: #ccc;

      // overflow: scroll;
      // &::-webkit-scrollbar {
      //   width: 0px;
      // }
      &-canvas {
        position: relative;
        overflow: hidden;
        .line-x {
          position: absolute;
          z-index: 999;
          top: -100px;
          bottom: -100px;
          border-left: 2px dashed rgb(17, 0, 255);
        }
        .line-y {
          z-index: 999;
          position: absolute;
          left: -100px;
          right: -100px;
          border-top: 2px dashed rgb(17, 0, 255);
        }
        .editor-block {
          position: absolute;
          &::after {
            content: "";
            z-index: 999;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
          }
        }

        .editor-block-focus {
          &::after {
            border: 2px dashed rgb(0, 255, 55);
          }
        }
      }
    }
  }
}
.editor-block .el-checkbox-group {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
  height: 30px;
  > .el-checkbox {
    margin: 0;
    padding: 0;
    width: 100px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
.hbh_button {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  > i {
    margin-right: 10px;
  }
}
.tableSolt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  .hbh_table_button {
    font-size: 12px;
    padding: 0 5px;
    height: 20px;
    border-radius: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    > i {
      margin-right: 5px;
    }
    margin-right: 10px;
  }
}

.hbh_text {
  width: 100%;
  height: 100%;
  line-height: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 16px;
}
.hbh_searchTree {
  height: 100%;
  display: flex;
  align-items: center;
  background-color: #fff;
  .serachTool {
    width: calc(100% - 32px);
    height: 100%;
    padding: 20px 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    .searchTip {
      margin-bottom: 20px;
      height: 24px;
      line-height: 24px;
    }
    .searchInput {
      height: 50px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 20px;
    }
    .treeTool {
      height: 40px;
      display: flex;
      justify-content: flex-end;
      margin-bottom: 20px;
      > span {
        width: 60px;
        text-align: center;
        line-height: 40px;
        height: 40px;
        background-color: #0ae00a;
        border-radius: 10px;
        color: #fff;
        margin: 0 10px;
      }
    }
    .mainTree {
      height: calc(100% - 174px);
      overflow-y: auto;
      &::-webkit-scrollbar {
        width: 0px;
      }
    }
  }
  .splitBox {
    width: 22px;
    height: 100%;
    // background-color: #e9e4e4;
  }
  .changeState {
    width: 10px;
    height: 100%;
    // background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    .off {
      width: 100%;
      height: 80px;
      background-color: #d11c1c;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      > span {
        border: 6px solid rgba(255, 255, 255, 0);
        width: 0;
        height: 0;
        border-right: 6px solid #fff;
        border-left: none;
      }
    }
    .open {
      width: 100%;
      height: 80px;
      background-color: #fff;
      display: flex;
      align-items: center;
      > span {
        border: 6px solid rgba(255, 255, 255, 0);
        width: 0;
        height: 0;
        border-left: 6px solid #000;
        border-right: none;
      }
    }
  }
}
.hbh_tableContainer {
  width: 100%;
  height: 100%;
  background-color: #fff;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
  .tableControl {
    height: 40px;
    box-sizing: border-box;
    display: flex;
    .tableBox {
      position: relative;
      margin-right: 5px;
      .tableBtn {
        width: 120px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 2px solid;
        box-sizing: border-box;
        border-radius: 5px;
      }
      .btnChild {
        position: absolute;
        bottom: -80px;
        left: 0;
        height: 80px;
        width: 120px;
        background-color: #fff;
        border-radius: 5px;
        border: 1px solid #ccc;
        box-sizing: border-box;
        z-index: 2;
        display:none;
        .showBox {
          width: 100%;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          height: 100%;
          > div {
            height: 30px;
            margin-bottom: 5px;
            line-height: 30px;
            text-align: center;
          }
        }
      }
      // .tableBtn:hover{
      //   background-color: red;
      //   color: #fff;
      // }
    }
  }
  .pagination {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

//预览css
.app_hbh {
  width: 100vw;
  height: 100vh;
  overflow: auto;
  .test {
    width: 1200px;
    height: 2000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    .editor-block {
      position: absolute;
      &::after {
        display: none;
        content: "";
        // z-index: 999;
        // position: absolute;
        // top: 0;
        // left: 0;
        // right: 0;
        // bottom: 0;
        // background-color: green;
      }
    }
  }
}
